package com.senseuni.da.utils

import com.senseuni.da.events.*
import org.greenrobot.eventbus.EventBus

class EventUtil {

    companion object {

        fun sendMessageEvent(msg:String){
            EventBus.getDefault().post(MessageEvent(msg))
        }

        fun sendDownloadEvent(materialId: Long, path: String) {
            EventBus.getDefault().post(DownloadEvent(materialId, path))
        }

        fun sendUpgradeEvent() {
            EventBus.getDefault().post(UpgradeEvent())
        }

        fun sendAdsFunEvent(data: String) {
            EventBus.getDefault().post(AdsFunEvent(data))
        }

        fun sendLanguageEvent(value: String) {
            EventBus.getDefault().post(LanguageEvent(value))
        }

        fun sendTimeEvent(hour:Int) {
            EventBus.getDefault().post(TimeEvent(hour))
        }

    }

}